<%@page import="servlet.RoleTable"%>
<%@page import="Logic.Authorizer"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%
	if (session.getAttribute("name") == null) {
		response.sendRedirect("login.jsp");
	} else {
		if (!Authorizer.checkRole("4", session.getAttribute("role")
				.toString())) {
			response.sendRedirect("nopermission.jsp");
		}
	}
%>

<!-- Declare the first header -->
<jsp:include page="t_header.jsp" />

<!-- Declare Breadcrumbs options -->
<!--  <div class="breadcrumbs_container">
	<article class="breadcrumbs">
		<a href="role_view.jsp">Administrate Web Access</a>
		<div class="breadcrumb_divider"></div>
		<a class="current">View Roles</a>
	</article>
</div> -->
<jsp:include page="header.html" />
<!-- Declare sidebar -->
<jsp:include page="t_sidebar.jsp" />

<!-- Main Content -->
<section  id="main" class="column">

	<article style="margin-bottom:20px;" class="module width_3_quarter">
		<header>
			<h3>View Roles</h3>
		</header>


		<table class="tablesorter" cellspacing="0">
			<thead>
				<tr>
					<th>Staff Name</th>
					<th>Staff Username</th>
					<th>Role</th>
				</tr>
			</thead>
			<tbody>
				<%
					RoleTable rt = new RoleTable(out);
					rt.doGet(request, response);
				%>
			</tbody>
		</table>


	</article>
	

	<!-- end of content manager article -->
	<div class="spacer"></div>
</section>

<!-- Declare closing tags -->
<jsp:include page="t_footer.jsp" />